home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11271 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  952 b 

  1. Path: newsfeeds.ans.net!btco!newsadm
  2. From: Shalom Reich <sqr1874@acf4.nyu.edu>
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: HELP!: Error when trying to use cout in MSVC++ 4.0!
  5. Date: Wed, 13 Mar 1996 10:56:16 -0500
  6. Organization: Bankers Trust Company
  7. Message-ID: <3146F020.9F0@acf4.nyu.edu>
  8. References: <4i5kpd$eic@mirv.unsw.edu.au> <13MAR199607405255@erich.triumf.ca>
  9. NNTP-Posting-Host: algsvw0058.btco.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (WinNT; I)
  14.  
  15. P.Bennett wrote:
  16. > In article <4i5kpd$eic@mirv.unsw.edu.au>, s2139589@cse.unsw.edu.au (CC) writes...
  17. >
  18. > >Basically I am trying to use cout to print a word, however the
  19. > >compiler keeps generating the following error:
  20. > >
  21.  
  22.   [snip]
  23.  
  24. > Quite likely your compiler thinks you are writing C, but cout only exists in
  25. > C++.
  26.  
  27. Did you #include <iostream.h> ?  It defines cin and cout etc.
  28.  
  29. Shalom Reich
  30.